package com.lemeng.service;

import com.lemeng.entity.PageResult;
import com.lemeng.pojo.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService {

    public List<Category> findAll();

    public PageResult<Category> findPage(Integer page, Integer size);

    public List<Category> findList(Map<String, Object> serchMap);

    public PageResult<Category> findPage(Integer page, Integer size, Map<String, Object> serchMap);

    public Category findById(Integer id);

    void add(Category category);

    void update(Category category);

    void delete(Integer id);

    public List<Map> findCategoryMenus();

    public void selectCategoryRedis();
}
